import org.junit.Before;
import org.junit.Test;

import java.io.PrintStream;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;


public class TennisGameKataTest {

    private PrintStream printstream;
    private TennisGameKata tennisGame;


    @Before
    public void setUp(){
        printstream = mock(PrintStream.class);
        tennisGame = new TennisGameKata(printstream);


    }

    @Test
    public void shouldDisplayScore(){
        tennisGame.displayScore();
        verify(printstream).println("15/30");

    }



}
